const express = require('express')

const app = express()

app.use(require('cors')())
app.use(express.json())

app.use('/admin', express.static(__dirname + '/admin'))
app.use('/upload', express.static(__dirname + '/upload'))


require('./plugins/db')(app)
require('./routers/admin')(app)

app.listen(3000, () => {
  console.log('在监听 !!! ')
})